import { initGlobalState, MicroAppStateActions } from 'qiankun';
//应用间通信
const initialState = {
  appcode: '1111'
};
const actions: MicroAppStateActions = initGlobalState(initialState);
actions.onGlobalStateChange((state, prevState) => {
  console.log('主应用观察者：token 改变前的值为 ', prevState);
  console.log('主应用观察者：token 改变后的值为 ', state);
  //
});

export default actions;
